package cn.lili.modules.payment.client;

import cn.lili.common.security.enums.SceneEnums;
import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.payment.entity.dto.PaymentCallback;
import cn.lili.modules.payment.entity.dto.UserWalletUpdateDTO;
import cn.lili.modules.payment.entity.vo.WalletVO;
import cn.lili.modules.payment.fallback.WalletFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 会员钱包业务
 *
 * @author liushuai(liushuai711 @ gmail.com)
 * @since 2021/12/7 08:24
 */
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PAYMENT_SERVICE, contextId = "wallet", fallback = WalletFallback.class)
public interface WalletClient {

    /**
     * 查询会员的预存款
     *
     * @param memberId 会员id
     * @return 用户钱包VO
     */
    @GetMapping("/feign/wallet/query-by-member")
    WalletVO getMemberWallet(@RequestParam String memberId);



}
